from django.shortcuts import render

# Create your views here.

from django.views.generic import TemplateView, ListView, DetailView, CreateView, UpdateView, DeleteView
from .models import Article


class ArticleIndexView(TemplateView):
    template_name = "blog/index.html"


class ArticleAboutView(TemplateView):
    template_name = "blog/about.html"


class ArticleDetailView(DetailView):
    model = Article
    template_name = "blog/info.html"
    pk_url_kwarg = "pk"

    def get_context_data(self, **kwargs):
        content = super().get_context_data(**kwargs)
        print("++_)+)", content)
        return content
